package com.cly.feign;

import com.cly.domain.UserAddr;
import com.cly.feign.hystrix.OrderMemberFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "member-service",fallback = OrderMemberFeignHystrix.class)
public interface OrderMemberFeign {

    /**
     * 获取用户的默认收货地址
     * @param userId
     * @return
     */
    @GetMapping("p/address/getUserDefaultAddr")
    UserAddr getUserDefaultAddr(@RequestParam String userId);
}
